[XEN][POWERPC] Turn off the Guard bit for access to the grant table
authorJimi Xenidis <jimix@watson.ibm.com>
Sat, 11 Nov 2006 15:30:07 +0000 (10:30 -0500)
committerJimi Xenidis <jimix@watson.ibm.com>
Sat, 11 Nov 2006 15:30:07 +0000 (10:30 -0500)
Soon, we will not have domains map this page like IO, but for the near
term lets undo all the IO-type PTE bits.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : E%89%B3%DE%C1%FD%87P%96%85%84q%AEI%3Cp%8EpI%A3

xen/arch/powerpc/papr/xlate.c

index 1a08215df8cf9c9a24994d91d2a0cb0b578171c0..2d29d5819ce24d0b6712fdcfcd6db68c583e3d03 100644 (file)
@@ -199,6 +199,7 @@ long pte_enter(ulong flags, ulong ptex, ulong vsid, ulong rpn)
         DBG("%s: Dom[%d] mapping grant table: 0x%lx\n",
             __func__, d->domain_id, pfn << PAGE_SHIFT);
         pte.bits.i = 0;
+        pte.bits.g = 0;
     }
     /* fixup the RPN field of our local PTE copy */
     pte.bits.rpn = mfn | lp_bits;